function columns(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: 'rowIndex',
      width: 80,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      dataIndex: 'name',
      align: 'left',
      key: "name",
      width: 240,
      slots: { title: 'customTitle' },
    },
    {
      title: '合计',
      dataIndex: 'total',
      align: 'right',
      key: "total",
    },
  ]
  return cols
}

export default columns